import axios from '../axios'

export const addCommunity = (params) => {
    return axios.post(`base/community`, params)
}

export const modifyCommunity= (id, params) => {
    return axios.patch(`base/community/` + id, params)
}

export const communityList = (params) => {
    return axios.post(`base/community/list`, params)
}

export const communityItems = () => {
    return axios.get(`base/community/items`)
}

export const removeCommunity = (id) => {
    return axios.delete(`base/community/` + id);
}

export const communityInfo = (id) => {
    return axios.get(`base/community/` + id);
}